<template>
<div class="u-flex u-row-between u-col-center wrap" v-if="isShow" @click="$u.route('/pagesB/login/login')">
    <u-image :src="STATICURL+'images/icon-wallet2.png'" width="60" height="60" style="margin-left: 30upx"></u-image>

    <span class="btn">请点击登录</span>
</div>
</template>

<script>
export default {
name: "isLoginTips",
  data(){
    return{
      isShow:false
    }
  },
  onShow() {
    const token = uni.getStorageSync('token')
    if(!token){
        this.isShow= true
    }
  }
}
</script>

<style  lang="scss" scoped>

.wrap{
  background-color: rgba(#000,0.3);
  padding: 12upx;
  border-radius: 200upx;
  position: fixed;
  bottom:var(--window-bottom);
  color: #fff;
  left:30upx;
  right:30upx;
  .tip{
    font-size: 30upx;
  }
  .btn{
    display: inline-block;
    padding: 10upx 20upx;
    background-image: linear-gradient(to right, #ffa468, #fa3f3f);
    border-radius :200upx;
  }
}
</style>
